package com.example.service.implService;

import com.example.dao.MenuDao;
import com.example.pojo.Menu;
import com.example.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenuServiceImpl implements MenuService {
    private final MenuDao menuDao;

    @Autowired
    public MenuServiceImpl(MenuDao menuDao) {
        this.menuDao = menuDao;
    }

    @Override
    public List<Menu> menuList() {
        return menuDao.menuList();
    }

    @Override
    public List<Menu> typeMenuList() {
        return menuDao.typeMenuList();
    }

    @Override
    public List<Menu> typeButtonList() {
        return menuDao.typeButtonList();
    }

    @Override
    public List<Menu> queryMenuTree() {
        return menuDao.queryMenuTree();
    }

}
